-- entity.lua

local entity = FindMetaTable("Entity")

function entity:IsDoor()
	local doors = { "func_door", "func_door_rotating", "prop_door_rotating" }
	local class = self:GetClass()

	for _, v in pairs ( doors ) do
		if v == class then
			return true
		end
	end
	return false
end

function entity:IsItem()
	local class = self:GetClass()
	
	if class == "item" then
		return true
	end
	return false
end

local player = FindMetaTable("Player")



if not SERVER then return end
-----------------
-- SERVER-SIDE --
-----------------